package com.example.design.patterns.冰河.行为模式.责任链模式.concreteHandler;

import com.example.design.patterns.冰河.行为模式.责任链模式.handler.Request;
import com.example.design.patterns.冰河.行为模式.责任链模式.handler.RequestHandle;

public class HRRequestHandle implements RequestHandle {
    /**
     *
     * @param request
     */
    @Override
    public void handleRequest(Request request) {
        if (request instanceof DimissionRequest) {
            System.out.println("要离职，人事审批！");
        }
        System.out.println("请求完毕");
    }
}
